{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 会员列表 -->
    <div class="row wrapper border-bottom white-bg page-heading counselor-any">
        <div class="col-sm-4">
            <h2>{$title}</h2>
            <!-- 导航部分 -->
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">前台设置</a></li>
                <li><strong>{$title}</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="{:url('admin/Front/counselor_list')}" class="btn btn-primary">顾问卡</a>
            </div> 
        </div>
    </div>
    <!-- 分类列表 -->
    <div class="wrapper wrapper-content ">       
        <!-- 分类列表 -->
        <div class="ibox float-e-margins">
          
                    <div class="ibox-content">
                        <form action="{:url('admin/Adporttwo/writPresent')}"  class="valid-form form-horizontal"  id="uploadForm" enctype="multipart/form-data" method="post">
                            <!-- 基础信息 -->
                            <div class="panel panel-default">
                                <div class="panel-heading">基础信息</div>
                                <div class="panel-body">
                                   <div class="form-group">
                                        <label class="col-sm-2 control-label">顾问卡名称</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" name="ck_name" size="18" value="{$data['ck_name']?$data['ck_name']:''}" datatype="*"  placeholder="顾问卡名称" errormsg="请输入内容P1"  class="form-control" style="width: 140px;"  />
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">价格</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" name="ck_price" size="18" value="{$data['ck_price']?$data['ck_price']:''}"  datatype="*" placeholder="价格"  class="form-control" style="width: 140px;"  />
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">排序</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" name="ck_sort" size="18" value="{$data['ck_sort']?$data['ck_sort']:'0'}"  datatype="*" placeholder="新闻时间"  class="form-control" style="width: 140px;"  />
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P1</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P1" datatype="*" errormsg="请输入内容P1" sucmsg=" " value="{$data['ps_list'][0]?$data['ps_list'][0]:''}"/>
                                        </div>
                                        <p class="text-danger">示例：40,份,劳动人事基础文件修改</p>

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P2</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P2" datatype="*" errormsg="请输入内容P2" sucmsg=" " value="{$data['ps_list'][1]?$data['ps_list'][1]:''}"/>
                                        </div>
                                        <p class="text-danger">*必填</p>

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P3</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P3" datatype="*" errormsg="请输入内容P3" sucmsg=" " value="{$data['ps_list'][2]?$data['ps_list'][2]:''}"/>
                                        </div>
                                        <p class="text-danger">*必填</p>

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P4</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P4" datatype="*" errormsg="请输入内容P4" sucmsg=" " value="{$data['ps_list'][3]?$data['ps_list'][3]:''}"/>
                                        </div>
                                        <p class="text-danger">*必填</p>

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P5</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P5" datatype="*" errormsg="请输入行业" sucmsg=" " value="{$data['ps_list'][4]?$data['ps_list'][4]:''}"/>
                                        </div>
                                        <p class="text-danger">*必填</p>

                                    </div>
                              
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P6</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P6" errormsg="请输入内容P6" sucmsg=" " value="{$data['ps_list'][5]?$data['ps_list'][5]:''}"/>

                                        </div>
                                       
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P7</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P7"  errormsg="请输入内容P7" sucmsg=" " value="{$data['ps_list'][6]?$data['ps_list'][6]:''}"/>
                                        </div>
                                      

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P8</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P8"  errormsg="请输入内容P8" sucmsg=" " value="{$data['ps_list'][7]?$data['ps_list'][7]:''}"/>
                                        </div>
                                        

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P9</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P9"  errormsg="请输入内容P9" sucmsg=" " value="{$data['ps_list'][8]?$data['ps_list'][8]:''}"/>
                                        </div>
                                        

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P10</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P10"  errormsg="请输入内容P10" sucmsg=" " value="{$data['ps_list'][9]?$data['ps_list'][9]:''}"/>
                                        </div>
                                   

                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P11</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P11"  errormsg="请输入内容P11" sucmsg=" " value="{$data['ps_list'][10]?$data['ps_list'][10]:''}"/>
                                        </div>
                                       

                                    </div>
                                     <div class="form-group">
                                        <label class="col-sm-2 control-label">内容P12</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="ck_ps[]"  placeholder="内容P12"  errormsg="请输入内容P12" sucmsg=" " value="{$data['ps_list'][11]?$data['ps_list'][11]:''}"/>
                                        </div>
                                       

                                    </div>




                             <div class="form-group">
                                <div class="text-center">
                                    <input type="submit"  class="btn btn-danger submit" value="确认提交"  />
                                    <input type="hidden" name="counselor_id"  value="{$data['counselor_id']?$data['counselor_id']:''}"/>
                                    <a class="mg-left-10 btn btn-white" href="javascript:location.reload();" alt="重置">重置</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
    </div>

</body>
</html>
{include file="include:js" /}
<script type="text/javascript" src="__PUBLIC__/Js/jquery.form.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('.naldffa').click(function(){
            if( $(".valid-form").Validform().check() == false ){
                return;
            };
          var  layerindex = layer.load(1, {
                shade: [0.1,'#000'] //0.1透明度的白色背景
            });
        });
        $('#uploadForm').ajaxForm({
            dataType: 'json',
            success: processJson
        });
        function processJson(data){
            var  layerindex = layer.load(1, {
                shade: [0.1,'#000'] //0.1透明度的白色背景
            });
            layer.close(layerindex);
            layer.msg(data.msg,{time: 1500});
            if(data.code == '202'){
                window.location.href = data.url;
            }
        }

    });
</script>